using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_NhomLoiManagerBase
    {
        public TBL_NhomLoiManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity Insert(TBL_NhomLoiEntity obj)
        { 
            return (TBL_NhomLoiEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity Update(TBL_NhomLoiEntity obj)
        { 
            return (TBL_NhomLoiEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity UpdateWithCondition(TBL_NhomLoiEntity obj,TBL_NhomLoiEntity objCond)
        { 
            return (TBL_NhomLoiEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_NhomLoiEntity Delete(TBL_NhomLoiEntity obj)
        { 
            return (TBL_NhomLoiEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_NhomLoiEntity DeleteWithCondition(TBL_NhomLoiEntity objCond)
        { 
            return (TBL_NhomLoiEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity DeleteByMaNhomLoi (TBL_NhomLoiEntity obj)
        { 
            return (TBL_NhomLoiEntity)Adapter.DeleteByField(obj,"MaNhomLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaNhomLoi 
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity DeleteByMaNhomLoi (string MaNhomLoi )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return (TBL_NhomLoiEntity)Adapter.DeleteByField(obj,"MaNhomLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MoTa duoc set trong object
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity DeleteByMoTa (TBL_NhomLoiEntity obj)
        { 
            return (TBL_NhomLoiEntity)Adapter.DeleteByField(obj,"MoTa");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MoTa 
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity DeleteByMoTa (string MoTa )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MoTa = MoTa;  
            return (TBL_NhomLoiEntity)Adapter.DeleteByField(obj,"MoTa");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TenNhomLoi duoc set trong object
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity DeleteByTenNhomLoi (TBL_NhomLoiEntity obj)
        { 
            return (TBL_NhomLoiEntity)Adapter.DeleteByField(obj,"TenNhomLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TenNhomLoi 
        /// </summary>
        /// <returns>TBL_NhomLoiEntity</returns>
        public TBL_NhomLoiEntity DeleteByTenNhomLoi (string TenNhomLoi )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.TenNhomLoi = TenNhomLoi;  
            return (TBL_NhomLoiEntity)Adapter.DeleteByField(obj,"TenNhomLoi");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_NhomLoiEntity Select(TBL_NhomLoiEntity obj)
        { 
            return (TBL_NhomLoiEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_NhomLoiEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_NhomLoiEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_NhomLoiEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_NhomLoiEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_NhomLoiEntity> SelectAllLST()
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_NhomLoiEntity()),new TBL_NhomLoiEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_NhomLoiEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_NhomLoiEntity(),option),new TBL_NhomLoiEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNhomLoi (TBL_NhomLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaNhomLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNhomLoi (TBL_NhomLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaNhomLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhomLoiEntity></returns>
        public List<TBL_NhomLoiEntity> SelectByMaNhomLoiLST (TBL_NhomLoiEntity obj)
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNhomLoi"),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhomLoiEntity></returns>
        public List<TBL_NhomLoiEntity> SelectByMaNhomLoiLST (TBL_NhomLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaNhomLoi",option),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNhomLoi (string MaNhomLoi )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return Adapter.SelectByField(obj,"MaNhomLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNhomLoi (string MaNhomLoi, SelectOptions option)
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return Adapter.SelectByField(obj,"MaNhomLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhomLoiEntity> SelectByMaNhomLoiLST (string MaNhomLoi )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNhomLoi"),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhomLoiEntity> SelectByMaNhomLoiLST (string MaNhomLoi, SelectOptions option)
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNhomLoi",option),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTa duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMoTa (TBL_NhomLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MoTa");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTa duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMoTa (TBL_NhomLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MoTa",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTa duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhomLoiEntity></returns>
        public List<TBL_NhomLoiEntity> SelectByMoTaLST (TBL_NhomLoiEntity obj)
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MoTa"),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTa duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhomLoiEntity></returns>
        public List<TBL_NhomLoiEntity> SelectByMoTaLST (TBL_NhomLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MoTa",option),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTa 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMoTa (string MoTa )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MoTa = MoTa;  
            return Adapter.SelectByField(obj,"MoTa");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTa duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMoTa (string MoTa, SelectOptions option)
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MoTa = MoTa;  
            return Adapter.SelectByField(obj,"MoTa",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTa 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhomLoiEntity> SelectByMoTaLST (string MoTa )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MoTa = MoTa;  
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MoTa"),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTa duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhomLoiEntity> SelectByMoTaLST (string MoTa, SelectOptions option)
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.MoTa = MoTa;  
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MoTa",option),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenNhomLoi (TBL_NhomLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"TenNhomLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenNhomLoi (TBL_NhomLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TenNhomLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNhomLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhomLoiEntity></returns>
        public List<TBL_NhomLoiEntity> SelectByTenNhomLoiLST (TBL_NhomLoiEntity obj)
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenNhomLoi"),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNhomLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhomLoiEntity></returns>
        public List<TBL_NhomLoiEntity> SelectByTenNhomLoiLST (TBL_NhomLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TenNhomLoi",option),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNhomLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenNhomLoi (string TenNhomLoi )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.TenNhomLoi = TenNhomLoi;  
            return Adapter.SelectByField(obj,"TenNhomLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenNhomLoi (string TenNhomLoi, SelectOptions option)
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.TenNhomLoi = TenNhomLoi;  
            return Adapter.SelectByField(obj,"TenNhomLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNhomLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhomLoiEntity> SelectByTenNhomLoiLST (string TenNhomLoi )
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.TenNhomLoi = TenNhomLoi;  
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenNhomLoi"),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhomLoiEntity> SelectByTenNhomLoiLST (string TenNhomLoi, SelectOptions option)
        { 
            TBL_NhomLoiEntity obj = new TBL_NhomLoiEntity();
            obj.TenNhomLoi = TenNhomLoi;  
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenNhomLoi",option),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhomLoiEntity></returns>
        public List<TBL_NhomLoiEntity> SelectWithConditionLST (TBL_NhomLoiEntity obj)
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_NhomLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhomLoiEntity></returns>
        public List<TBL_NhomLoiEntity> SelectWithConditionLST (TBL_NhomLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhomLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_NhomLoiEntity());
        }

}
}
